package movie.test.as.log.biz;

import java.util.List;
import java.util.Map;

import movie.test.as.log.dao.LogDao;
import movie.test.common.BaseBiz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;

@Component
public class LogBiz extends BaseBiz{

	@Autowired
	private LogDao logDao;

	public int insertLog(Map user) {

		return logDao.insertLog(user);
	}

	public List<Map<String, Object>> findAllLogList(JSONObject objs) {
		PageHelper.startPage(getPagePara(objs));
		return logDao.findAllLogList(objs);
	}

	}
